<div class="chrom-mapping">
  <img src="../../images/chromosomes/${Organism.name}/big/${Chromosome}.jpg" alt="Chromosome ${Chromosome}" style="height:${(Ranges.size()*5)+40}px;"/>
  <div class="bars">
    <g:each in="${Ranges.keySet()}" var="range">
      <div class="bar" style="width:${(Ranges[range]['all']/Scale).toInteger()}px;">
        <g:each in="${Projects}" var="proj">
          <div class="found proj${proj.id}" style="width:${(Ranges[range][proj.id]['identified']/Scale).toInteger()}px; background-color:${Colors[proj.id]}; z-index:${1000-Ranges[range][proj.id]['identified']}">
            </div>
        </g:each>
        <div class="info">
          <div class="range">${range} - <g:if test="${(range+RangeWidth-1)>ChromosomeEnd}">${ChromosomeEnd}</g:if><g:else>${range+RangeWidth-1}</g:else></div>
          <g:each in="${Projects}" var="proj">
            <div class="project">in ${proj.name} <span>${Ranges[range][proj.id]['percent']}% identified</span></div>
          </g:each>
        </div>
      </div>
    </g:each>
    <div class="reference" style="width:${((((Max/10)+1).toInteger()*10)/Scale).toInteger()+1}px;">
      <g:each in="${0..((Max/10)+1)}" var="i">
        <div class="sep<g:if test="${i%10==0}"> labeled</g:if>" style="left:${((i*10)/Scale).toInteger()}px;"><g:if test="${i%10==0}"><div class="reflabel">${i*10}</div></g:if></div>
      </g:each>
    </div>
  </div>
</div>